package com.hkccommunity.dto;

import com.hkccommunity.entity.AnswerParent;
import com.hkccommunity.entity.User;

import java.util.List;


public class AnswerParentDto extends AnswerParent {

    //回答者信息
    private User userInfo;

    private List<AnswerChildDto> answerChildDtoList;

    @Override
    public String toString() {
        return "AnswerParentDto{" +
                "userInfo=" + userInfo +
                ", answerChildDtoList=" + answerChildDtoList +
                '}';
    }

    public AnswerParentDto() {
    }

    public AnswerParentDto(User userInfo, List<AnswerChildDto> answerChildDtoList) {
        this.userInfo = userInfo;
        this.answerChildDtoList = answerChildDtoList;
    }

    public AnswerParentDto(Long answerId, Long problemId, String answerContent, Long createUser, String createTime, Integer delete, Long like, User userInfo, List<AnswerChildDto> answerChildDtoList) {
        super(answerId, problemId, answerContent, createUser, createTime, delete, like);
        this.userInfo = userInfo;
        this.answerChildDtoList = answerChildDtoList;
    }

    public User getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(User userInfo) {
        this.userInfo = userInfo;
    }

    public List<AnswerChildDto> getAnswerChildDtoList() {
        return answerChildDtoList;
    }

    public void setAnswerChildDtoList(List<AnswerChildDto> answerChildDtoList) {
        this.answerChildDtoList = answerChildDtoList;
    }
}
